//
//  RadTableViewCell.m
//  iNews
//
//  Created by lanou3g on 14-12-23.
//  Copyright (c) 2014年 张在青. All rights reserved.
//

#import "RadTableViewCell.h"

@implementation RadTableViewCell

- (void)dealloc
{
    [_lab release];
    [_staBut release];
    
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        
        [self addAllViews];
        
    }
    return self;
}

-(void)addAllViews
{
    
    self.lab = [[[UILabel alloc] initWithFrame:CGRectMake(5, 5, self.bounds.size.width - 60, 40)] autorelease];
    
    //self.lab.backgroundColor = [UIColor blueColor];
    [self addSubview:self.lab];
//    
//    self.staBut = [[UIButton alloc] initWithFrame:CGRectMake(self.bounds.size.width - 55 ,5, 40, self.bounds.size.height-10)];
//    self.staBut.backgroundColor = [UIColor redColor];
//    
//    [self addSubview:self.staBut];
    
}



- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
